//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.itheima.pinda.authority.dto.auth;

import com.itheima.pinda.authority.entity.auth.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

@ApiModel(
        value = "UserRoleDTO",
        description = "用户角色DTO"
)
public class UserRoleDTO implements Serializable {
    @ApiModelProperty("用户id")
    private List<Long> idList;
    @ApiModelProperty("用户信息")
    private List<User> userList;

    public static UserRoleDTO.UserRoleDTOBuilder builder() {
        return new UserRoleDTO.UserRoleDTOBuilder();
    }

    public List<Long> getIdList() {
        return this.idList;
    }

    public List<User> getUserList() {
        return this.userList;
    }

    public UserRoleDTO setIdList(final List<Long> idList) {
        this.idList = idList;
        return this;
    }

    public UserRoleDTO setUserList(final List<User> userList) {
        this.userList = userList;
        return this;
    }

    public UserRoleDTO() {
    }

    public UserRoleDTO(final List<Long> idList, final List<User> userList) {
        this.idList = idList;
        this.userList = userList;
    }

    public String toString() {
        return "UserRoleDTO(super=" + super.toString() + ", idList=" + this.getIdList() + ", userList=" + this.getUserList() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserRoleDTO)) {
            return false;
        } else {
            UserRoleDTO other = (UserRoleDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$idList = this.getIdList();
                Object other$idList = other.getIdList();
                if (this$idList == null) {
                    if (other$idList != null) {
                        return false;
                    }
                } else if (!this$idList.equals(other$idList)) {
                    return false;
                }

                Object this$userList = this.getUserList();
                Object other$userList = other.getUserList();
                if (this$userList == null) {
                    if (other$userList != null) {
                        return false;
                    }
                } else if (!this$userList.equals(other$userList)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserRoleDTO;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $idList = this.getIdList();
        result = result * 59 + ($idList == null ? 43 : $idList.hashCode());
        Object $userList = this.getUserList();
        result = result * 59 + ($userList == null ? 43 : $userList.hashCode());
        return result;
    }

    public static class UserRoleDTOBuilder {
        private List<Long> idList;
        private List<User> userList;

        UserRoleDTOBuilder() {
        }

        public UserRoleDTO.UserRoleDTOBuilder idList(final List<Long> idList) {
            this.idList = idList;
            return this;
        }

        public UserRoleDTO.UserRoleDTOBuilder userList(final List<User> userList) {
            this.userList = userList;
            return this;
        }

        public UserRoleDTO build() {
            return new UserRoleDTO(this.idList, this.userList);
        }

        public String toString() {
            return "UserRoleDTO.UserRoleDTOBuilder(idList=" + this.idList + ", userList=" + this.userList + ")";
        }
    }
}
